package com.eastfair.home.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.eastfair.core.base.entity.Entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.time.LocalDateTime;
import java.util.HashMap;
import java.util.Map;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import static com.eastfair.core.utils.DateUtils.DEFAULT_DATE_TIME_FORMAT;
import com.eastfair.annotation.model.EchoVO;
import com.eastfair.home.enumeration.VenueReportReportDrawingStatusEnum;
import com.eastfair.home.enumeration.VenueReportReportServiceStatusEnum;

import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;

/**
 * <p>
 * 实体类
 * 一键报馆记录
 * </p>
 *
 * @author dq
 * @since 2022-10-31
 */
@Data
@NoArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("hc_venue_report")
@ApiModel(value = "VenueReport", description = "一键报馆记录")
@AllArgsConstructor
public class VenueReport extends Entity<Long> implements EchoVO {

    private static final long serialVersionUID = 1L;
    @TableField(exist = false)
    private Map<String, Object> echoMap = new HashMap<>();
    /**
     * 是否启用（确认状态）：1是 已确认；0否 未确认
     */
    @ApiModelProperty(value = "是否启用（确认状态）：1是 已确认；0否 未确认")
    @TableField(value = "is_enabled")
    @Excel(name = "是否启用（确认状态）：1是 已确认；0否 未确认")
    private Integer isEnabled;

    /**
     * 是否删除：1是；0否
     */
    @ApiModelProperty(value = "是否删除：1是；0否")
    @TableField(value = "is_deleted")
    @Excel(name = "是否删除：1是；0否")
    private Integer isDeleted;

    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    @TableField(value = "project_id")
    @Excel(name = "项目id")
    private Long projectId;

    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    @TableField(value = "subsystem_id")
    @Excel(name = "子系统id")
    private Long subsystemId;

    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    @TableField(value = "tenant_id")
    @Excel(name = "租户id")
    private Long tenantId;

    /**
     * 展会id
     */
    @ApiModelProperty(value = "展会id")
    @TableField(value = "exhibition_manage_id")
    @Excel(name = "展会id")
    private Long exhibitionManageId;

    /**
     * 展会名称
     */
    @ApiModelProperty(value = "展会名称")
    @Size(max = 100, message = "展会名称长度不能超过100")
    @TableField(value = "exhibition_manage_name", condition = LIKE)
    @Excel(name = "展会名称")
    private String exhibitionManageName;

    /**
     * 展厅编码
     */
    @ApiModelProperty(value = "展厅编码")
    @Size(max = 100, message = "展厅编码长度不能超过100")
    @TableField(value = "space_code", condition = LIKE)
    @Excel(name = "展厅编码")
    private String spaceCode;

    /**
     * 展厅号
     */
    @ApiModelProperty(value = "展厅号")
    @Size(max = 100, message = "展厅号长度不能超过100")
    @TableField(value = "space_name", condition = LIKE)
    @Excel(name = "展厅号")
    private String spaceName;

    /**
     * 主场ID
     */
    @ApiModelProperty(value = "主场ID")
    @TableField(value = "home_id")
    @Excel(name = "主场ID")
    private Long homeId;

    /**
     * 主场名称
     */
    @ApiModelProperty(value = "主场名称")
    @Size(max = 100, message = "主场名称长度不能超过100")
    @TableField(value = "home_name", condition = LIKE)
    @Excel(name = "主场名称")
    private String homeName;

    /**
     * 报馆图纸状态 #{NOT_REPORT:未上报;PARTIAL_REPORT:部分上报;HAS_REPORT:已上报}
     */
    @ApiModelProperty(value = "报馆图纸状态 #{NOT_REPORT:未上报;PARTIAL_REPORT:部分上报;HAS_REPORT:已上报}")
    @TableField(value = "report_drawing_status")
    @Excel(name = "报馆图纸状态 #{NOT_REPORT:未上报;PARTIAL_REPORT:部分上报;HAS_REPORT:已上报}", replace = {"未上报_NOT_REPORT", "部分上报_PARTIAL_REPORT", "已上报_HAS_REPORT",  "_null"})
    private VenueReportReportDrawingStatusEnum reportDrawingStatus;

    /**
     * 报馆服务状态 #{NOT_REPORT:未上报;PARTIAL_REPORT:部分上报;HAS_REPORT:已上报}
     */
    @ApiModelProperty(value = "报馆服务状态 #{NOT_REPORT:未上报;PARTIAL_REPORT:部分上报;HAS_REPORT:已上报}")
    @TableField(value = "report_service_status")
    @Excel(name = "报馆服务状态 #{NOT_REPORT:未上报;PARTIAL_REPORT:部分上报;HAS_REPORT:已上报}", replace = {"未上报_NOT_REPORT", "部分上报_PARTIAL_REPORT", "已上报_HAS_REPORT",  "_null"})
    private VenueReportReportServiceStatusEnum reportServiceStatus;


    @Builder
    public VenueReport(Long id, Long createdBy, LocalDateTime createTime, Long updatedBy, LocalDateTime updateTime, 
                    Integer isEnabled, Integer isDeleted, Long projectId, Long subsystemId, Long tenantId, 
                    Long exhibitionManageId, String exhibitionManageName, String spaceCode, String spaceName, Long homeId, String homeName, 
                    VenueReportReportDrawingStatusEnum reportDrawingStatus, VenueReportReportServiceStatusEnum reportServiceStatus) {
        this.id = id;
        this.createdBy = createdBy;
        this.createTime = createTime;
        this.updatedBy = updatedBy;
        this.updateTime = updateTime;
        this.isEnabled = isEnabled;
        this.isDeleted = isDeleted;
        this.projectId = projectId;
        this.subsystemId = subsystemId;
        this.tenantId = tenantId;
        this.exhibitionManageId = exhibitionManageId;
        this.exhibitionManageName = exhibitionManageName;
        this.spaceCode = spaceCode;
        this.spaceName = spaceName;
        this.homeId = homeId;
        this.homeName = homeName;
        this.reportDrawingStatus = reportDrawingStatus;
        this.reportServiceStatus = reportServiceStatus;
    }

}
